package com.student.demo.dao;

import com.student.demo.entiy.Message;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Component;

import java.util.List;

@Mapper
@Component
public interface MessageDao {
    void addMessage(@Param("userName") String userName, @Param("message") String message);
    List<Message> queryMessage();
}
